package com.scedu.form;

import lombok.Data;

import javax.persistence.Id;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
@Data
public class ProductForm {

    private  String productId;
    @NotEmpty(message = "商品名称必填")
    private String productName;
    @NotNull(message = "商品价格必填")
    private BigDecimal productPrice;
    @NotNull(message = "商品库存数量必填")
    private  Integer productStock;
    private String productDescription;
    //@NotEmpty(message = "商品图片必填")
    private String productIcon;

    @NotNull(message = "商品类型必填")
    private Integer categoryType;
}
